import Reflux from 'reflux';
import PageConst from './PageConst';
import Actions from './Actions';

export default Reflux.createStore({
  listenables: [Actions],
  data: {
    ...PageConst,
  },

  updateComponent: function () {
    this.trigger(this.data);
  },

  getInitialState: function () {
    return this.data;
  }
});
